<?php


namespace frontend\models\cyf;


use yii\db\ActiveRecord;

class LogOperation extends ActiveRecord
{
    public static function tableName()
    {
        return '2008a_log_operation';
    }

    public static function create($params)
    {
        $model = new LogOperation();
        $model->author = $params['author'];
        $model->action = $params['action'];
        $model->content = $params['content'];
        $model->datetime = date('Y-m-d H:i:s');
        return $model->save();
    }
}